class Dog:
    typename='Dogname'
    def __init__(self,name,age,weight):
        self.name=name
        self.age=age
        self.weight=weight
        print('我是Dog父类的——init——')

    def roar(self):
        print(self.name+'狗叫了一声 ')
        self.weight-=10

    def six(self):
        print('狗坐下了')

t1=Dog('小黄',18,100)
print(t1.name)
print(t1.weight)
t1.roar()
print('叫后的体重为：',t1.weight)
t1.six()

#
# class SouDog(Dog):
#     higt=19.5 #子类独有的
#     def __init__(self):
#         Dog.__init__(self,name='小黄',age=188,weight=200)
#
#
#




# t2=SouDog('aa',15,150)

# t2=SouDog()
# print(t2.age)
# print(t2.name)
# print(t2.weight)
# print(t2.higt)
